package com.csun.dsms.service.impl;

import com.csun.dsms.comment.core.support.BaseService;
import com.csun.dsms.mapper.DsmsPoorChangeMapper;
import com.csun.dsms.model.domain.DsmsPoorChange;
import com.csun.dsms.model.vo.poor.PoorChangeVo;
import com.csun.dsms.service.DsmsPoorChangeService;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DsmsPoorChangeServiceImpl extends BaseService<DsmsPoorChange> implements DsmsPoorChangeService {

    @Resource
    private DsmsPoorChangeMapper dsmsPoorChangeMapper;

    //查询人员变动信息
    @Override
    public List<PoorChangeVo> queryPoorChange(PoorChangeVo poorChangeVo) {
        PageHelper.startPage(poorChangeVo.getPageNum(), poorChangeVo.getPageSize());
        return dsmsPoorChangeMapper.queryPoorChange(poorChangeVo);
    }
}
